﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Gronia.Test
{
    /// <summary>
    /// Interaction logic for StretchPanelTest.xaml
    /// </summary>
    public partial class StretchPanelTest : Window
    {
        public StretchPanelTest()
        {
            InitializeComponent();
        }
        Random random = new Random();
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            byte[] r = new byte[3];
            random.NextBytes(r);
            hs.Children.Insert(hs.Children.Count - 1, new Rectangle() { Fill = new SolidColorBrush(Color.FromRgb(r[0], r[1], r[2])), Height = 50 });
        }

        private void Button_Click2(object sender, RoutedEventArgs e)
        {
            byte[] r = new byte[3];
            random.NextBytes(r);
            vs.Children.Insert(vs.Children.Count - 1, new Rectangle() { Fill = new SolidColorBrush(Color.FromRgb(r[0], r[1], r[2])), Width = 50 });
        }
    }
}